﻿namespace etracks.Web
{
    using etracks.EntityModels;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// ViewModel used in ProjectTypeController, Index action
    /// </summary>
    public class ProjectTypeIndexViewModel
    {
        public int ProjectTypes { get; set; }
    }

    /// <summary>
    /// ViewModel used in ProjectTypeController, List action
    /// </summary>
    public class ProjectTypeListViewModel
    {
        public List<ProjectTypeReadOnlyViewModel> ProjectTypeList { get; set; }

        public ProjectTypeListViewModel()
        {
            this.ProjectTypeList = new List<ProjectTypeReadOnlyViewModel>();
        }
    }

    /// <summary>
    /// ViewModel used in ProjectTypeController, Search action
    /// </summary>
    public class ProjectTypeSearchViewModel
    {
        public string Search_Term { get; set; }

        public List<ProjectType> ProjectTypeList { get; set; }

        public ProjectTypeSearchViewModel()
        {
            this.ProjectTypeList = new List<ProjectType>();
        }
    }

    public class ProjectTypeRegistrationViewModel : ProjectType 
    {
        //public List<ProjectTypeType> ProjectTypeTypeList { get; set; }
    }

    public class ProjectTypeReadOnlyViewModel : ProjectType
    {
        //public string ProjectTypeType { get; set; }
    }

}

